package chapter.compare;

import java.util.Comparator;

/**
 * description: new java files...TODO
 * @version v1.0
 * @author w
 * @date 2019年11月2日下午10:17:08
 **/

public class ScoreComparator implements Comparator<Student> {

	@Override
	public int compare(Student o1, Student o2) {
		
		return (int) (o1.getScore() - o2.getScore());
	}

}
